package com.kfm.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class File implements Serializable {
    private Integer id;

    private String fileName;

    /**
    * 文件大小，单位 byte
    */
    private String fileSize;

    /**
    *  
    */
    private Integer typeId;

    /**
    * 用户id
    */
    private Integer userId;

    private User user;

    /**
    * 上传时间
    */
    private Date createTime;

    /**
    * 目录id
    */
    private Integer directoryId;

    private Directory directory;


    private String md5;

    @Serial
    private static final long serialVersionUID = 1L;
}